public class ArrayCopy {
	public static void main(String[] args) {
		int source[] = { 1, 2, 3, 4, 5, 6 };
		int dest[] = { 11, 22, 33, 44, 55, 66, 77, 88 };
		System.out.println("数组拷贝之前：");
		printarray(dest);
		System.arraycopy(source, 0, dest, 2, 3);
		System.out.println("数组拷贝之后：");
		printarray(dest);
	}

	public static void printarray(int a[]) {
		for (int i = 0; i < a.length; i++)
			System.out.println("dest[" + i + "] = " + a[i]);
	}
}
